package homework_02.home01;
import java.util.Scanner;
public class Demo_04 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int num=235;
        if(num>=100 && num<1000){
            int b=num/100;
            int s=num%100/10;
            int g=num%10;
            int m=b*b*b+s*s*s+g*g*g;
            if ((num==m)){
                System.out.println(num+"是水仙花数");
            }else{
                System.out.println(num+"不是水仙花数");
            }

            }else{
            System.out.println("你输入有误");
        }



    }
}
